#ifndef _Imp_H263ENC_H_
#define _Imp_H263ENC_H_

#ifdef __cplusplus
extern "C" 
{
#endif // __cplusplus
	void* h263enc_open(int width, int height);
	int h263enc_encode(void * handle, const void* input, void* output, int* length,int* is_I);
	void h263enc_set(void *  handle,
		int width,
		int height,
		int time, 
		double fps,
		int   rc_method,				//0: CQP,1:ABR, 2:CRF
		int   bitrate,				    //bitrate
		int         qp,					//QP
		int   code_mode,				//:0 CAVLC;:1 CABAC
		int   pass                      //:1 1pass, 2 2pass
		);		
	void h263enc_close(void * handle);
#ifdef __cplusplus
};
#endif // __cplusplus

#endif //_H263ENC_H_